package com.jsy.mini12306.travel;

import com.jsy.mini12306.travel.config.OssConfig;
import com.jsy.mini12306.travel.service.OssService;
import lombok.Getter;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: SongyangJi
 * @description:
 * @since: 2021/9/5
 */


@RestController
@RequestMapping("oss")
public class OssController {

    @Resource
    OssService ossService;

    @GetMapping("/home-page-images")
    public ResponseEntity<List<String>> getHomePageImages() {
        return ResponseEntity.ok(ossService.getHomePageImages());
    }

}
